package chapter02;

public class Training05 {
    public static void main(String[] args) {
        char[] s = {'序','顺','符','字','组','数','倒','颠'};
        // TODO 使用循环将数组中字符的顺序完成反转
        System.out.println(s);
        for (int i = 0; i < s.length/2; i++) {
            char cd = s[i];
            s[i]=s[s.length-1-i];
            s[s.length-1-i] = cd;
        }
        System.out.println(s);
    }
}